import Vue from 'vue'
import App from './App.vue'
import "@/mobile/flexible" //适配
import "@/styles/reset.css" //初始化样式
import router from '@/router' //路由对象

import {Tabbar, TabbarItem, NavBar, Row, Col, Image as VanImage,
  Cell, Icon, Search,List} from 'vant';


Vue.use(List);
Vue.use(Search);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(VanImage);
Vue.use(Row);
Vue.use(Col);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);

// 测试封装的api方法
import {recommendMusicAPI} from '@/api'
async function fn(){
  const res=await recommendMusicAPI() //api方法原地会得到 axios请求在原地的promise对象（里面有一个ajax请求）
  console.log(res)
}
fn()

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
